package tt.love.hw.jdo;

import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class User {
	
	@PrimaryKey
	private String userId;

	@Persistent
	private String userName;

	@Persistent
	private String email;

	@Persistent
	private String password;

	@Persistent
	private String role;

	@Persistent
	private String mateUserId;

	@Persistent
	private Date lastLoginDate;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getMateUserId() {
		return mateUserId;
	}

	public void setMateUserId(String mateUserId) {
		this.mateUserId = mateUserId;
	}

	public Date getLastLoginDate() {
		return lastLoginDate;
	}

	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}

	@Override
	public String toString() {
		return "User [email=" + email + ", mateUserId=" + mateUserId
				+ ", password=" + password + ", role=" + role + ", userId="
				+ userId + ", userName=" + userName + "]";
	}
	
	
	

}
